<h1>Edit Customer</h1>
<p>Please enter the Customer's information below.</p>
<?php if(!empty($message)) {?>
<div class="alert alert-error">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<?php echo $message;?></div>
<?php }?>
<?php echo form_open(current_url());?>
<table width="60%" align="center" class="table-condensed">  
        
        
         <tr>
		  <td><b>Customer Name: </b></td>
            <td><?php echo form_input($name);?></td>
        </tr>  
       <tr> <td><b>  Contact Person: </b></td>
            <td><?php echo form_input($contact_person);?></td>
        </tr>  
     	<tr>
          <td width="31%"><b>Tin Number: </b></td>
          <td colspan="2"><?php echo form_input($tin_no);?></td>
       </tr>
       	<tr>
          <td width="31%"><b>phone: </b></td>
          <td colspan="2"><?php echo form_input($phone);?></td>
       </tr>
	   	<tr>
          <td width="31%"><b>Mobile No: </b></td>
          <td colspan="2"><?php echo form_input($mobile);?></td>
       </tr>
	    <tr> 
     	  <td width="31%"> <b>Opening Balance:</b> </td>
    	  <td colspan="2"><?php echo form_input($opening_balance);?></td>
		  <td colspan="2"></td>
     </tr> 
	 <tr>
	 <td><b>Opening Balance Type</b></td>	
	  <td><label class="checkbox">
		<input type="radio"  name="type" value="Debit" <?php if($user->type == 'Debit' ){ ?> checked='checked' <?php } ?>>:Debit
		</label>
		<label class="checkbox">
		<input type="radio"   name="type" value="Credit"  <?php if($user->type == 'Credit' ){ ?> checked='checked' <?php } ?>  >:Credit
		</label>
	</td>
	</tr>
      

          <tr>
          <td width="31%"><b> Email: </b> </td>
          <td colspan="2"><?php echo form_input($email);?></td>
        </tr>
    
       <tr>
          <td width="31%"><b> Address: </b></td>
          <td colspan="2"> <?php echo form_textarea($address, '', 'style="height : 50px;"');?></td>
       </tr>
       
        <tr>
           <td>
	            <?php echo form_hidden('id', $user->id);?> 
          </td>
        </tr>
        <tr>
          <td>&nbsp;</td><td><?php echo form_submit($submit,'class="btn btn-success"');?></td>
  </tr>
</table>
<?php echo form_close();?>
